import request from '@/plugin/axios'
import util from '@/libs/util.js'

export default {

	list (data) {
		return request({
			url: 'logisticsorder/list',
			headers: {},
			method: 'post',
			data,
		});
	},

	info (data) {
		return request({
			url: 'logisticsorder/info',
			headers: {},
			method: 'post',
			data,
		});
	},

	// add (data) {
	// 	return request({
	// 		url: 'logisticsorder/add',
	// 		headers: {},
	// 		method: 'post',
	// 		data,
	// 	});
	// },

	set (data) {
		return request({
			url: 'logisticsorder/set',
			headers: {},
			method: 'post',
			data,
		});
	},

	// del (data) {
	// 	return request({
	// 		url: 'logisticsorder/del',
	// 		headers: {},
	// 		method: 'post',
	// 		data,
	// 	});
	// },

	getStatusOptions (data = {}) {
		return request({
			url: 'logisticsorder/getStatusOptions',
			headers: {},
			method: 'post',
			data,
		});
	},

	upload (formData, onProgress) {
		return request({
			url: 'logisticsorder/upload',
			method: 'post',
			headers: {
				'Content-Type': 'multipart/form-data',
			},
			onUploadProgress: onProgress,
			timeout: 0,
			data: formData,
		});
	},

	exportExcel (data) {
		return request({
			url: 'logisticsorder/exportexcel',
			headers: {},
			method: 'post',
			data,
		});
	},

};